package com.newer.his.guahao.controller;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.DateTimeFormat.ISO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import com.newer.his.common.entity.Working;
import com.newer.his.guahao.service.GuahaoService;

@RestController
@RequestMapping("/guahao")
public class GuahaoController {
	
	@Autowired
	GuahaoService guahaoService;
	
	
	/**
	 * 给定一个事件获取所这天有挂号信息
	 * @return
	 */
	@GetMapping("/{date}")
	public List<Working> getRegisterrecord( @PathVariable @DateTimeFormat(iso = ISO.DATE)  java.sql.Date date){
		guahaoService.getregisterrcorddate(date);
		return null;
		
	}
}
